/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package fr.istia.gesstages.exception;

/**
 *
 * @author usrlocal
 */
public class PortailException extends RuntimeException {

    public final static int ERR_NONE = 1;
    private int errcode = ERR_NONE;

    public PortailException(String message) {
        super(message);
    }

    public PortailException(String message, Throwable cause) {
        super(message, cause);
    }

    public PortailException(String message, int errcode) {
        this.errcode = errcode;
    }

    /**
     * @return the errcode
     */
    public int getErrcode() {
        return errcode;
    }
}
